<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>



<jsp:include page="main.jsp"/>
<div style="width:735px;margin-top:10px;">
<form action="EmailDeleteAccept.action" method="post">
<table width="100%" style="font-size:14px">
  	<tr style="background-color:#F0F0F0">
    	<td colspan="5" style="height:40px; vertical-align:middle; border-bottom:1px solid  #E4FADE;">
			<span style=" font-size:22px; font-weight:500; margin-left:10px;">
					收件箱
			</span>
			<span style="margin-left:20px;">
				( 共${pages} 封 ） 其中 未读邮件 <span style="color:#FF0000">${read}</span> 封 
			</span>
		</td>
    </tr>
    
    <tr align="center" style="font-weight:600; color:#666666;">
		<td width="15%" style="border-bottom:1px solid  #E4FADE;">选择</td>
		<td width="25%" style="border-bottom:1px solid  #E4FADE;">发件人</td>
		<td width="30%" style="border-bottom:1px solid  #E4FADE;">主题</td>
		<td width="15%" style="border-bottom:1px solid  #E4FADE;">时间</td>
		<td width="15%" style="border-bottom:1px solid  #E4FADE;">阅读状态</td>
  	</tr>
	<s:iterator value="list">
    <tr align="center" style="background-color:#F9F9F9" onmouseover="this.style.background='#E7FEFD'" onmouseout="this.style.background=''">
    	<td style="border-bottom:1px solid  #E4FADE;"><input type="checkbox" name="ids" id="ids" value="<s:property value="id"/>"/></td>
		<td style="border-bottom:1px solid  #E4FADE;" onclick="location='EmailSee.action?id=<s:property value="id"/>'"><s:property value="sender"/></td>
		<td style="border-bottom:1px solid  #E4FADE;" onclick="location='EmailSee.action?id=<s:property value="id"/>'"><s:property value="theme"/></td>
		<td style="border-bottom:1px solid  #E4FADE;" onclick="location='EmailSee.action?id=<s:property value="id"/>'"><s:property value="sendtime"/></td>
		<td style="border-bottom:1px solid  #E4FADE;" onclick="location='EmailSee.action?id=<s:property value="id"/>'"><s:property value="readed"/></td>
  	</tr>
	</s:iterator>

	  <tr>
	  	<td><input type="submit"  value="删除" style="text-decoration:none;font-weight:300; color:#666666;margin-left:40px"></td>
	  	
		<td  colspan="4"  align="right" style="height:20px; vertical-align:middle; border-bottom:1px solid  #E4FADE;font-weight:300; color:#666666;">
				
				 [ 第${page}页 | 共${allpage}页 |
				<a href="EmailAccept.action?page=1" style="text-decoration:none;font-weight:300; color:#666666;">首页</a> |
				<s:if test="${page>1}"><a href="EmailAccept.action?page=${page-1}" style="text-decoration:none;font-weight:300; color:#666666;">上一页</a> |</s:if> 
				<s:if test="${page<allpage}"><a href="EmailAccept.action?page=${page+1}" style="text-decoration:none;font-weight:300; color:#666666;">下一页</a> |</s:if> 
				
				<a href="EmailAccept.action?page=${allpage}" style="text-decoration:none;font-weight:300; color:#666666;margin-right:30px">末页 ]</a> 
		</td>
	  </tr>
</table>
</form>
</div>

<jsp:include page="mainb.jsp"/>

